import { RequestHandler } from "express";
import { DataStore } from "../../data";

export const apiDeleteUserInfor:RequestHandler=(req,res,next)=>{
    let deleteIndex=-1;
    deleteIndex= DataStore.user.findIndex(item=>item.id==req.params.id);
    if(deleteIndex!=-1){
        DataStore.user.splice(deleteIndex,1);
    }
    res.send("delete success")
}